<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>秒转时间</title>
	</head>
	<body>
		<script type="text/javascript">
			var a=prompt("请输入")
			if(Boolean(a)){
				if(isNaN(a)){
					alert("输入不合法")
				}else{
					alert(parseInt(a/60)+"分"+a%60+"秒")
					
				}
			}else{
				alert("你还未输入")
			}
		</script>
	</body>
</html>
